CREATE TRIGGER TGCTPH_02 ON CHITIETPHIEUNHAP
FOR INSERT,UPDATE
AS
BEGIN
	DECLARE @COUNT INT
	SET @COUNT = (SELECT SOLUONG FROM inserted)
	IF(@COUNT < 0)
	BEGIN
		RAISERROR('SO LUONG KHONG DUOC NHO HON 0',16,1)
		ROLLBACK TRAN
		RETURN
	END
END